﻿using XLZF.MicroServices.Models;

namespace XLZF.MicroServices.IRepository;

public interface IUserRepository
{
    /// <summary>
    /// 添加
    /// </summary>
    /// <param name="Clothing_Users"></param>
    /// <returns></returns>
    Task<int> AddClothingUsers(Clothing_Users Clothing_Users);

    /// <summary>
    /// 删除
    /// </summary>
    /// <param name="Clothing_Users"></param>
    /// <returns></returns>
    int DelClothingUsers(Clothing_Users Clothing_Users);

    /// <summary>
    /// 改
    /// </summary>
    /// <param name="Clothing_Users"></param>
    /// <returns></returns>
    int EditClothingUsers(Clothing_Users Clothing_Users);

    /// <summary>
    /// 查
    /// </summary>
    /// <returns></returns>
    List<Clothing_Users> GetClothingUsers();

    /// <summary>
    /// 查
    /// </summary>
    /// <param name="BrandID"></param>
    /// <returns></returns>
    Clothing_Users GetClothingUsersSing(int BrandID);

    /// <summary>
    /// 条件查询
    /// </summary>
    /// <param name="name">姓名</param>
    /// <param name="isAsc">是否正序</param>
    /// <param name="pageIndex">页码</param>
    /// <param name="pageSize">每页大小</param>
    /// <returns></returns>
    Page<Clothing_Users> GetClothingPageData(string name, bool isAsc, int pageIndex, int pageSize);
}
